package cn.edu.ctbu.studentmanage.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 *  针对tb_score的实体类
 */
//取对象命一般小写
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity(name = "tb_score")
public class Score {
    /**
     * 编号
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    private String no;
    /**
     * 课程编号
     */
    private String cno;

    /**
     * 课程名称
     */
    @NotNull
    private String cname;

    /**
     * 学生学号
     */
    private String sno;

    /**
     * 学生姓名
     */
    private String sname;


    /**
     * 成绩
     */
    private String score;
}
